b spline curve with example